package com.pcafs.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author: hyh
 * @Date: 2022/5/11 14:52
 **/
public interface PcafsDataCountMapper extends BaseMapper {

    List<Map> storeCountByYear();

    List<Map> storeCountByProvince();

    List<Map> storeIncomeByYear(Long id);

    List<Map> storeIncomeByQuarter(Long id);

    List<Map> storeIncomeByMonth(Long id);

    /**
     * 所有店 总收入 支出 利润
     * @Author hyh
     * @Date 22:24 2022/5/15

     **/
    List<Map> storeDetailCount();

    /**
     * 总成本统计按年
     * @Author hyh
     * @Date 22:24 2022/5/15
     **/
    List<Map> costByYear();


    List<Map> analyzeByYear();


    List<Map> analyzeByQuarter();

    /**
     * 总成本统计按季度
     * @Author hyh
     * @Date 22:24 2022/5/15
     **/
    List<Map> costByQuarter();

    List<Map> analyzeInfo(Integer type);

    List<LinkedHashMap> analyzeJzInfo(Integer type);
}
